<%@include file="/WEB-INF/includes/tags.jsp" %>
{
response:{
command:'list',
currentPath: '<s:property value="path"/>',
files:[
<s:iterator value="list">
    {
    name: '${name}',

    <s:if test="directory">
        contentType:'${contentType}',
        length: '${length}',
        path:'${folder}',
    </s:if>
    <s:else>
        path:'/view.action?fileId=${id}',
    </s:else>
    isDirectory: '${directory}'
    },
</s:iterator>
{
name: '/',
isDirectory: 'true',
path:'/'
}
]
}
}